
<div class="idx-pager idx-pager-top" style="margin-bottom: 2em;">
    <div class="idx-left"><a href="<?php echo str_replace('&mlsnumber=' . $_GET['mlsnumber'], '', $_SERVER['REQUEST_URI']); ?>">Back to Search Results</a></div>
</div>

<b><?php echo $result->Results->item->address->street1; ?>, <?php echo $result->Results->item->address->city; ?>, <?php echo $result->Results->item->address->state; ?> <?php echo $result->Results->item->address->zip_code; ?></b>

<table border="0" width="100%">
    <tr>
        <td rowspan="8" valign="top"><img src="/plugins/content/getyouridx/empty.jpg" width="150" height="100" alt="" /></td>
        <td><b><?php echo (isset($result->Results->item->asking_price)) ? '&#36;' . number_format($result->Results->item->asking_price, 0) : 'n/a'; ?></b></td>
    </tr>
    <tr>
        <td valign="top">
            <div class="idx-resultlabel"><label>MLS #:</label><?php echo (!empty($result->Results->item->mls_number)) ? $result->Results->item->mls_number : 'n/a'; ?></div>
            <div class="idx-resultlabel"><label>Beds:</label><?php echo (!empty($result->Results->item->bedrooms)) ? $result->Results->item->bedrooms : 'n/a'; ?></div>
            <div class="idx-resultlabel"><label>Baths:</label><?php echo (!empty($result->Results->item->bathrooms)) ? $result->Results->item->bathrooms : 'n/a'; ?></div>
            <div class="idx-resultlabel"><label>Sq Ft:</label><?php echo (!empty($result->Results->item->sqft)) ? $result->Results->item->sqft : 'n/a'; ?></div>
            <div class="idx-resultlabel"><label>Year Built:</label><?php echo (!empty($result->Results->item->year_built)) ? $result->Results->item->year_built : 'n/a'; ?></div>
            <div class="idx-resultlabel"><label>Type:</label><?php echo (!empty($result->Results->item->setting)) ? $result->Results->item->setting : 'n/a'; ?></div>
            <div class="idx-resultlabel"><label>Acreage:</label><?php echo (!empty($result->Results->item->acreage)) ? $result->Results->item->acreage : 'n/a'; ?></div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="x-resultdescription">&nbsp;</div>
        </td> 
    </tr>
    <tr>
        <td>
            <div class="x-resultdescription"><?php echo $result->Results->item->description; ?></div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="x-resultdescription">&nbsp;</div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="buttons">
                <a rel="prettyPhoto[flash]" href="/plugins/content/getyouridx/map.swf?width=550&height=400&flashvars=key=<?php echo $this->params->get( 'gapikey', '' ); ?>&amp;address=<?php echo urlencode($result->Results->item->address->street1 . ' ' . $result->Results->item->address->city . ' ' . $result->Results->item->address->state . ' ' . $result->Results->item->address->zip_code); ?>" title="Map of <?php echo $result->Results->item->address->street1; ?>, <?php echo $result->Results->item->address->city; ?>, <?php echo $result->Results->item->address->state; ?> <?php echo $result->Results->item->address->zip_code; ?>">
                    <img src="/plugins/content/getyouridx/images/map.png" width="16" height="16" />
                    Map
                </a>
                <?php if (!empty($result->Results->item->vtour_unbranded)): ?>
                <a rel="" href="<?php echo $result->Results->item->vtour_unbranded; ?>" title="Virtual Tour">
                    <img src="/plugins/content/getyouridx/images/film_link.png" width="16" height="16" />
                    Virtual Tour
                </a>
                <?php endif; ?>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="x-resultdescription">&nbsp;</div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="x-resultdescription">
                <?php
                //
                // REMOVING THE 'Listing provided by:' line is a breach of the T&C's between you and your MLS
                //
                ?>
                <p class="idx-footer">
                    Listing provided by: <?php echo $result->Results->item->agent->name; ?>, <?php echo $result->Results->item->agent->company; ?><br />
                    <a href="http://www.getyouridx.com/">IDX Services</a> provided by <a href="http://www.getyouridx.com/">GetYourIDX</a>.
                </p>
                <p class="idx-footer">
                    Information being provided is for consumers' personal, non-commercial use and may not be used for any purpose other than to identify prospective properties consumers may be interested in purchasing. Information deemed reliable but not guaranteed
                </p>
            </div>
        </td>
    </tr>
    <tr>
        <td>
            <div class="x-resultdescription">&nbsp;</div>
        </td>
    </tr>
</table>

<div class="idx-pager idx-pa